import request from '@/utils/request'
/*权限*/
let SysConfigApi = {
  /*获取当前角色权限*/
  getList(data, errorback) {
    return request._post('/sys/config/lists', data, errorback)
  },
  addConfig(data, errorback) {
    return request._post('/sys/config/add', data, errorback)
  },
  updateConfig(data, errorback) {
    return request._post('/sys/config/update', data, errorback)
  },
  deleteConfig(data, errorback) {
    return request._post('/sys/config/delete', data, errorback)
  },
  resetConfig(data, errorback) {
    return request._post('/sys/config/reset', data, errorback)
  },
  upload(data, errorback){
    return request._post('/sys/config/upload', data, errorback)
  }
}
export default SysConfigApi